﻿using MvcAngularJS.DAL;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MvcAngularJS.Repository
{
    public class MvcAngularJS : DbContext
    {
        public DbSet<Users> Users { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Users>().ToTable("Users");
        }

        public int DeleteAccounts()
        {
            return Database.ExecuteSqlCommand("DeleteAccounts");
        }

        public int DeleteSecuritiesAndExchanges()
        {
            return Database.ExecuteSqlCommand("DeleteSecuritiesAndExchanges");
        }
    }
}
